package com.dk.feign;

import com.dk.data.Result;
import com.dk.entity.TValuationDTO;
import com.dk.feign.fallback.ValuationFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Date;

@FeignClient(value = "dongdongershouche-valuation-service",fallback = ValuationFeignFallback.class)
public interface ValuationFeign {
    @PostMapping("/valuationCotroller")
    Result<BigDecimal> getvaluationPrice(@RequestParam Integer mileage,@RequestParam Integer damage,@RequestParam BigDecimal price,@RequestParam String statedate);
}
